#ifndef _TIMEIMPL_H_
#define _TIMEIMPL_H_

#include "stdafx.h"

class CTimerImpl :		public	ITimer,
						public	CUnknownImp,
						public  IoTimer
{
public:
	CTimerImpl();
	virtual ~CTimerImpl(void);

	BEGIN_STDCOM_MAP
		STDCOM_INTERFACE_ENTRY(ITimer)
		STDCOM_INTERFACE_ENTRY_UNKNOWN_(ITimer)
	END_STDCOM_MAP


	//ITimer
	std_method(Start)();
	std_method(Stop)();
	std_method(SetSec)(int isec);
	std_method(UnBind)();
	std_method(Bind)(IBase* pBase);
	std_method_(UINT, GetId)();
	std_method(SetId)(UINT uId);

	int OnTime(UINT err);
private:
	UINT			m_uId;
	TimerEventPtr	m_Event;
};
#endif


